import { ref} from 'vue'
import { defineStore } from 'pinia'
import { getCatrgoryAPI } from "@/apis/lazyout";
export const useCategoryStore = defineStore('category', () => {
    //导航数据管理

    const categoryList = ref([]);

    const getCategroy = async () => {
        const res = await getCatrgoryAPI();
        categoryList.value = res.result;
    };
    return{
        categoryList,
        getCategroy
    }
})
